import axios from '../utils/request'

// 超登
const suplogin = (params = {}) => axios.post('/suplogin', params)
// 登录
const login = (params = {}) => axios.post('/login', params)
// 删除档案
const delItem = (id) => axios.get('/delItem', {
  params: { id }
})
// 更新档案
const updateItem = (params = {}) => axios.post('/updateItem', params)
// 档案详情
const getItemDetail = (id) => axios.get('/getItemDetail', {
  params: { id }
})
// 新增档案
const additem = (params = {}) => axios.post('/addItem', params)
// 获取档案
const getitemlists = (params = {}) => axios.get('/getitemlists', { params })

export { getitemlists, additem, getItemDetail, updateItem, delItem, login, suplogin }
